package com.example.demo.core.model;


import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author yj
 * @date 2021-04-24 10:03
 */
@Getter
public enum StatusEnum {
    SUCCESS(200, "成功"),
    PRO_ERROR(500, "服务器错误"),
    SIGN_ERROR(401, "登录信息错误"),
    PER_ERROR(403,"权限错误"),
    NOT_ERROR(404, "没有相应的信息");
    private Integer status;

    private String message;

    StatusEnum(Integer status, String message) {
        this.status = status;
        this.message = message;
    }
}
